from locust_plugins.csvreader import CSVDictReader
from locust import HttpUser, task, constant

ssn_reader = CSVDictReader("ssn_.txt", delimiter=",")
# user = open("../locustfiles/cookies.txt", mode='r')

# print(ssn_reader)
# print(next(ssn_reader))


class MyUser(HttpUser):
    wait_time = constant(1)
    @task
    def index(self):
        customer = next(ssn_reader)
        print(customer)

    def on_stop(self):
        ssn_reader.close()

    host = "https://www.demoblaze.com"